package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pojo.qc.CommonDefect;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ Description:
 * @ Author: 戴着假发的程序员
 * @ Date: 2025/9/20 - 16:06
 */
public interface CommonDefectMapper {
    /**
     * 根据defectDescription、detectionItemType、defectLevel查询常见缺陷列表
     * @param commonDefect
     * @return
     */
    List<CommonDefect> selectList(CommonDefect commonDefect);

    int save(CommonDefect commonDefect);

    int updateById(CommonDefect commonDefect);

    int deleteById(Long id);

    int batchDelete(@Param("ids") Long [] ids);

    CommonDefect selectById(Long id);
}
